/********************************************************************
	created:	2011/04/14
	created:	14:4:2011   23:32
	filename: 	d:\Work\Job\trunk\Speed\ProgressItemDelegate.h
	file path:	d:\Work\Job\trunk\Speed
	file base:	ProgressItemDelegate
	file ext:	h
	author:		liang
	
	purpose:	
*********************************************************************/
#ifndef _ProgressItemDelegate_h_2011_4_14_23_49
#define _ProgressItemDelegate_h_2011_4_14_23_49
#include <QStyledItemDelegate>

class ProgressItemDelegate : public QStyledItemDelegate
{
	Q_OBJECT
public:
	ProgressItemDelegate(QWidget* pParent = 0);

	void paint(QPainter* pPainter, const QStyleOptionViewItem &option,
				const QModelIndex& index) const;

	QSize sizeHint(const QStyleOptionViewItem &option,
					const QModelIndex &index) const;
};

#endif